<script>
	import configApi from "@/api/configApi.js"
	import tool from "@/utils/tool.js"

	export default {
		onLaunch: function() {
			configApi.getConfig().then(res => {
				let baseConfig = {}
				res.data.forEach(item => {
					if(item.configKey==='SNOWY_CLIENT_STATEMENT'){
						this.$store.state.statement = item.configValue
					}
					if(item.configKey==='SNOWY_CLIENT_NOTICE'){
						this.$store.state.notice = item.configValue
					}
					if(item.configKey==='SNOWY_CLIENT_CAROUSELCHART'){
						this.$store.state.carouselChart = JSON.parse(item.configValue)
					}
					if(item.configKey==='SNOWY_CLIENT_CONTACTCODE'){
						this.$store.state.contactCode = JSON.parse(item.configValue)
					}
				})
			})
		},
		onShow: function() {
			// console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style>
	@import "./colorui/main.css";
	@import "./colorui/icon.css";
	@import "./app.scss";
</style>
